package org.adultedu.service.serviceimpl;

import org.adultedu.dao.ScListMapper;
import org.adultedu.pojo.ScList;
import org.adultedu.service.ScListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;

@Transactional
@Service("ScListServiceImpl")
public class ScListServiceImpl implements ScListService {
    @Autowired
    private ScListMapper scListMapper;

    public List queryScList(Integer ispay) {
        return scListMapper.queryScList(ispay);
    }

    public List queryScListByDate(Date startDate, Date endDate, Integer ispay) {
        return scListMapper.queryScListByDate(startDate,endDate,ispay);
    }

    public int updateScList(ScList scList) {
        return scListMapper.updateScList(scList);
    }

    public int insertScList(ScList scList) {
        return scListMapper.insertScList(scList);
    }

    public int deleteScList(ScList scList) {
        return scListMapper.deleteScList(scList);
    }
}
